/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package CSISL4pk;

/**
 *
 * @author Josh
 */
import javax.swing.*;


public class LoadCaseFrame extends JInternalFrame  {
    static int openFrameCount = 0;
    static final int xOffset = 30, yOffset = 30;
    
    JPanel loadPane = new JPanel();
    
    JTextField cNumTextField = new JTextField();
    JLabel cNumL = new JLabel();
    JButton loadButton = new JButton("Load");
    JButton cancelButton = new JButton("Cancel");
    
    public LoadCaseFrame(){
        super("Load Case #" + (++openFrameCount), 
              true, //resizable
              false, //closable
              false, //maximizable
              false);//iconifiable

        //...Create the GUI and put it in the window...
        
        add(loadPane);
        loadPane.setLayout(null);
        
        //add components
        
        loadPane.add(cNumL);
        cNumL.setText("Case Number:");
        cNumL.setBounds(25, 25, 100, 25);
        
        loadPane.add(cNumTextField);
        cNumTextField.setBounds(125, 25, 100, 25);
       
        loadPane.add(loadButton);
        loadButton.setBounds(240, 25, 80, 25);
        
        loadPane.add(cancelButton);
        cancelButton.setBounds(330, 25, 80, 25);
        //size of GUI window
        setSize(450,100);

        //Set the window's location.
        setLocation(400, 100);
        
    }
    
}
